home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1997 January
/
Macworld (1997-01).dmg
/
Shareware World
/
Utilities
/
Data & Time Management
/
MacCalendar
/
About the Build Script
next >
Wrap
Text File
|
1994-10-20
|
2KB
|
53 lines
Notes on the AppleScript build environment:
1. I use the following folder hierarchy:
Sample Name mm/dd ƒ -- mm/dd is the sample edit date.
Src -- This folder contains all C (etc) source code.
Obj -- This folder contains MPW objects. The contents
may be dragged to the trash for a clean rebuild.
Also: projects, MakeFiles, icon resources, and project residude are
stored in the top-level folder.
2. Project naming conventions:
Project.π -- (opt/p) Think C 68000 project.
Project.µ -- (opt/m) MetroWerks Code Warrior 68000 project.
Project.Δ -- (opt/j) MetroWerks Power PC native project
Makefile -- MPW Makefile.
3. Building MetroWerks resources:
Instead of using ToolServer, I have a target object named "MetroWerks" in
the MPW Makefile. The AppleScript builds MetroWerks resources by executing
make -f Makefile MetroWerks
Also, a normal MPW build will update the MetroWerks resources.
4. Setup
The script is for rebuilding a working sample. It does not run smoothly
if you have code bugs or are doing major development. You must setup the
Project type information under both Think and MetroWerks before using
the script. You should also make sure that the sample builds correctly
under MPW.
5. MetroWerks "fat" applications:
Currently, I am not building fat applications directly. To build a fat
MetroWerks project, the 68000 project merges resources into the PPC
project's .rsrc file:
First, using MetroWerks PPC: build a native (non-fat) application.
Then, under MetroWerks 68000: use the preferences dialog to set
the project type to "Code Resources," select the merge checkbox,
and set the destination file to "Project.Δ.rsrc"
Do the above once by hand, then you should be able to build fat
applications by updating both projects.
6. Limitatios and bugs
The script often runs out of memory on a 12 Mb PowerBook Duo.
The script is very error-unfriendly.
The script sometimes hangs (beachball spins). I always run it with
the event logging window visible. Doing two MPW builds in a row
seems to cause the most hangs.
7. Please send bug fixes and improvements to
Martin Minow
Developer Technical Support
AppleLink: MINOW
Internet: minow@apple.com